package com.ruoyi.partybuilding.common.EQuery;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EasyWhereCondition;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public abstract class CU2Entity<T extends Comparable<T> & Serializable> extends CreateByEntity<T> {

    @Data
    public static class LongId extends com.ruoyi.partybuilding.common.EQuery.CU2Entity<Long> {

        @EasyWhereCondition(type = EasyWhereCondition.Condition.EQUAL)
        @Column(primaryKey = true,generatedKey = true)
        Long id;
    }

    /**
     * 更新者
     */
    private String updateBy;


    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
